import { get, post } from '@/util/axios';

// 用户密码登陆
export function loginByUserName(params) {
  return post('/o2o/useroperation/loginbyusername', params);
}

// 手机登录
export function loginByPhone(params) {
  return post('/o2o/useroperation/loginbyPhone', params);
}

// 用户注册
export function registerUser(params) {
  return post('/o2o/useroperation/registeruser', params);
}

// 用户注销
export function logOut() {
  return post('/o2o/useroperation/logout');
}

// 获取用户详情 
export function getUserDetail() {
  return get('/o2o/useroperation/getuserdetail');
}

// 修改用户信息 
export function modifyUser(params) {
  return post('/o2o/useroperation/modifyuser', params);
}

// 忘记密码 
export function changePwd(params) {
  return post('/o2o/useroperation/changepwd', params);
}

